using Microsoft.WindowsAzure;

namespace AzureContrib.WindowsAzure.StorageClient
{
	/// <summary>
	/// A small helper can conjure up a <see cref="CloudStorageAccount"/> that uses a Fiddler2 proxy.
	/// </summary>
	public static class FiddlerDevelopementStorageHelper
	{
		/// <summary>
		/// Gets a <see cref="CloudStorageAccount"/> object that references the development storage account and uses a DevelopmentStorageProxyUri to match the use of Fiddler2. 
		/// </summary>
		/// <seealso cref="ProxyConnectionString"/>
		public static CloudStorageAccount DevelopmentStorageAccount
		{
			get { return CloudStorageAccount.Parse(ProxyConnectionString); }
		}

		/// <summary>
		/// The proxy connection string specified when running agains Windows Azure Storage Emulator and running Fiddler.
		/// </summary>
		public const string ProxyConnectionString = "UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://ipv4.fiddler";
	}
}